package org.grill.clovercash;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class Perspective implements IPerspectiveFactory {

	public void createInitialLayout(IPageLayout layout) {
		
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(false);
//		layout.setFixed(true);
		
		IFolderLayout folder  = layout.createFolder("accounts", IPageLayout.TOP, 0.75f, editorArea);
		folder.addPlaceholder(AccountLedgerView.ID + ":*");
		folder.addPlaceholder(ReconcileView.ID + ":*");
		
		layout.addStandaloneView(AccountListView.ID,  true, IPageLayout.BOTTOM, 0.25f, editorArea);
//		layout.addView(AccountLedgerView.ID,  IPageLayout.RIGHT, 0.2f, "foo-area");
		
		
		layout.getViewLayout(AccountListView.ID).setCloseable(false);
	}

}
